package  src
{
	import flash.display.MovieClip;
	import flash.events.Event;
	/**
	 * ...
	 * @author Luiz Felipe de S. Rodrigues
	 */
	public class MiniCarro extends MovieClip
	{
		var cont : uint;
		
		public function MiniCarro() 
		{
			cont = 0;
			
			addEventListener(Event.ENTER_FRAME, update);
		}
		
		public function update(e:Event):void
		{
			if (cont < 40)
			{
				this.alpha = 1 - (cont / 60);
				cont++;
			}
			
			else
			{
				cont = 0;
			}
		}
	}

}